<?php 
	//-------------------INPUT ELEMENTS----------------
	$name_app 		= $this->formText('name_app',$this->Item['name_app'],array('class'=>'txtmedium'));
	$link_app 		= $this->formFile('link_app');
	$link_img 		= $this->formFile('link_img');
	$options		= array('Inactive','Active');
	$status			= $this->formRadio('status',$this->Item['status'],null,$options, ' ');
	$options 		= $this->groupApp;
	$optionType		= $this->typeApp ;
	$group_app 		= $this->formSelect('group_app',$this->Item['group_app'],array('style'=>"min-width: 200px"),$options);
	$type_app		= $this->formSelect('type_app',$this->Item['type_app'],array('style'=>"min-width: 200px"),$optionType);
	$des_app 		= $this->cmsReplaceString($this->Item['des_app']);
	$des_app 		= $this->cmsEditor('des_app',$des_app,array('toolbar'=>'Default','language'=>'vi'));
	
	$arrInput = array(
						array('label'=>'Name app: '	, 	'input'=>$name_app),
						array('label'=>'Link app: '	, 	'input'=>$link_app),
						array('label'=>'Link Img: '	, 	'input'=>$link_img),
						array('label'=>'Status: '	, 	'input'=>$status),
						array('label'=>'Group App: ', 	'input'=>$group_app),
						array('label'=>'Type App: '	, 	'input'=>$type_app),
						array('label'=>'Description: ', 'input'=>$des_app,'style'=>'margin-left: 175px;'),
						);
	//------------------------MESSAGES ERROR----------------------
		if(count($this->messageError)>0){
			$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
		}else {
			$errors ="";
		}					
?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">



                        <?php echo $this->render('admin-user/toolbar/index.php')?>
                        <div class="clr"></div>
                         <?php echo $this->render('admin-user/sublink/index.php')?>
                         <?php echo $errors?>
			
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                             <div class="adminheader">Detail</div>
								
								<?php echo $this->partialLoop('row.php',$arrInput);?>
                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>